package com.java.java8.lambda.lambda;

import java.util.List;

//�Զ��庯���ӿ�
class MyStream<T> {
	public List<T> list ;
	//private List<T> list = (List<T>) Arrays.asList("I", "love", "you", "too");
	public void myForEach(ConsumerInterface<T> consumer){// 1
		for(T t : list){
			consumer.accept(t);
		}
	}
}